/*
 * Copyright (c) 2023, 2023,yzc.cn All rights reserved.
 *
 */
package cn.yzc.service.impl;

import cn.yzc.mapper.CateGoryMapper;
import cn.yzc.pojo.TaskCategory;
import cn.yzc.service.CateGoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>Project: SpringPro - CateGoryServiceImpl</p>
 * <p>Powered by yzc On 2023-10-25 15:59:15</p>
 * <p>描述：<p>
 *
 * @author yzc [yzc0415@126.com]
 * @version 1.0
 * @since 17
 */

@Service
public class CateGoryServiceImpl implements CateGoryService {

    @Autowired
    CateGoryMapper cateGoryMapper;

    /**
     * 增加
     *
     * @param taskCategory
     * @return
     */
    @Override
    public int insertCategory(TaskCategory taskCategory) {
        return cateGoryMapper.insertCategory(taskCategory);
    }

    /**
     * 查询
     *
     * @return
     */
    @Override
    public List<TaskCategory> queryCategory() {
        return cateGoryMapper.queryCategory();
    }
}
